Tag Link | [Image->Scale] | Category | Image |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 7.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Scales an image to a specified size. Requries
[Image Variable->(Scale:
[Image Variable->(Scale:
Required Parameters | |
---|---|
-Width | Specifies the new width of the image using either integer pixel values or string percentage values (e.g. '50%'). |
-Height | Specifies the new height of the image using either integer pixel values or string percentage values (e.g. '50%'). |
Optional Parameters | |
-Sample | Indicates pixel sampling should be used. |
-Thumbnail | Optimizes the image for display on the Web. |
To enlarge an image:
Use the [Image->Scale] tag on a defined image variable. The following example enlarges image.jpg to 225 X 225 pixels. The optional
[Var: 'MyImage' =(Image: '/images/image.jpg')]
[$MyImage->(Scale:
[$MyImage->(Save: '/images/image.jpg')]
To contract an image:
Use the [Image->Scale] tag on a defined image variable. The following example contracts image.jpg to 25 X 25 pixels. The optional
[Var: 'MyImage' =(Image: '/images/image.jpg')]
[$MyImage->(Scale:
[$MyImage->(Save: '/images/image.jpg')]